package com.example.testdemo.service;

import com.example.testdemo.mapper.MessageInfoMapper;
import com.example.testdemo.model.messageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class messageService {
    @Autowired
    private MessageInfoMapper messageInfoMapper;
    public Integer insert(messageInfo messageInfo) {
        return messageInfoMapper.insertMSG(messageInfo);
    }

    public List<messageInfo> select() {
        return messageInfoMapper.selectMSG();
    }
    //对对象进行操作,就是Service
}
